package com.zx.springcloud.service;

import com.zx.springcloud.entity.Payment;
import com.zx.springcloud.vo.CommonResult;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

/**
 * @author ZX
 * @date 2021/3/25
 */
@Component
@FeignClient(value = "CLOUD-PAYMENT-SERVICE")
public interface PaymentFeignService
{

   /* @GetMapping(value = "/payment/get/{id}")
    public CommonResult<Payment> getPaymentById(@PathVariable String id);
*/
    @GetMapping(value = "/payment/timeOut")
    public  String timeOut();
}
